<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/11/13
 * Time: 14:17
 */

namespace app\api\validate;


class CategoryUpdateParameter extends BaseValidate
{
    protected $rule=[
        'id'=>'isPositiveInt',
        'name'=>'require',
        'topic_img_id'=>'isPositiveInt',
    ];
    protected  $message=[
        'id'=>'分类id必须为正整数',
        'name'=>'分类名称不能为空',
        'topic_img_id'=>'图片ID必须为正整数',
    ];

}